﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 学生类
    /// </summary>
    public class EM_Student
    {
        /// <summary>
        /// 学号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Name { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        [Required]
        public DateTime Birth { get; set; }

        /// <summary>
        /// 入学时间
        /// </summary>
        [Required]
        public DateTime JoinTime { get; set; }

        /// <summary>
        /// 学费
        /// </summary>
        [Required]
        public double Cost { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }
        /// <summary>
        /// 年级
        /// </summary>
        [Required]
        public int Grade { get; set; }
        /// <summary>
        /// 专业
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Major { get; set; }
        /// <summary>
        /// 班级
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Class { get; set; }
        /// <summary>
        /// 班主任
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Teacher{ get; set; }
    }
}
